package com.pengxun.manager.dao.system;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.pengxun.manager.model.system.Role;
import com.pengxun.manager.vo.RoleParam;

public interface RoleDao {
   public int insert(Role role);
   
   public int update(Role role);
   
   public int delete(@Param("roleId") Integer id);
   
   public int deleteByRoleCode(@Param("roleCode") String roleCode);
   
   public List<Role> findByPage(RoleParam role);
   
   Role findByRoleCode(@Param("roleCode")String roleCode);


    List<Role> findByRoleCodes(@Param("list") List<String> list);




	List<Role> findAll();
	
	Role selectLastRole();
}
